package com.aynu.gulimall.product.feign;

import com.aynu.common.to.SkuHasStockVo;
import com.aynu.common.to.es.SKUEsModel;
import com.aynu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author mj
 * @version 1.0
 * @date 2021/3/8 10:35
 */
@FeignClient("gulimall-search")
public interface SearchFeignService {
    /**
     * 添加索引信息
     * @param skuEsModels
     * @return
     */
    @PostMapping("/search/save/product")
    public R productStatusUp(@RequestBody List<SKUEsModel> skuEsModels);
}
